package cn.echo.consul.manager.annotation;

import cn.echo.consul.manager.enums.PermissionRole;

import java.lang.annotation.*;

/**
 * 权限码校验
 * RequestPermissions({ADMIN,OWNER})
 * @author lonyee
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestPermissions {
    /**
     * 权限码
     */
    PermissionRole[] value();
}
